<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class AttachmentBehavior</title>

	<script type="text/javascript" src="resources/combined.js?394153670"></script>
	<script type="text/javascript" src="elementlist.js?1800566221"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-abismo.html">abismo<span></span></a>
						<ul>
				<li><a href="package-abismo.admin.html">admin</a>
						</li>
				<li><a href="package-abismo.home.html">home</a>
						</li>
				<li><a href="package-abismo.images.html">images</a>
						</li>
				<li><a href="package-abismo.projects.html">projects</a>
						</li>
				<li><a href="package-abismo.Services.html">Services</a>
						</li>
				<li><a href="package-abismo.studio.html">studio</a>
						</li>
				<li><a href="package-abismo.tenders.html">tenders</a>
						</li>
				<li><a href="package-abismo.users.html">users</a>
						</li>
				<li><a href="package-abismo.videos.html">videos</a>
						</li>
				<li><a href="package-abismo.view.html">view<span></span></a>
						<ul>
				<li><a href="package-abismo.view.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-app.html">app<span></span></a>
						<ul>
				<li><a href="package-app.Config.html">Config<span></span></a>
						<ul>
				<li><a href="package-app.Config.Schema.html">Schema</a>
						</li>
							</ul></li>
				<li><a href="package-app.Model.html">Model<span></span></a>
						<ul>
				<li><a href="package-app.Model.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-app.Model.debug.kit.html">kit</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-app.View.html">View<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.html">Helper<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.views.html">views<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.views.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
				<li><a href="package-cake.html">cake<span></span></a>
						<ul>
				<li><a href="package-cake.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-cake.debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-cake.debug.kit.panels.html">panels</a>
						</li>
							</ul></li></ul></li></ul></li>
				<li><a href="package-debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-debug.kit.components.html">components</a>
						</li>
				<li><a href="package-debug.kit.controllers.html">controllers<span></span></a>
						<ul>
				<li><a href="package-debug.kit.controllers.components.html">components</a>
						</li>
							</ul></li>
				<li><a href="package-debug.kit.Lib.html">Lib</a>
						</li>
				<li><a href="package-debug.kit.models.html">models<span></span></a>
						<ul>
				<li><a href="package-debug.kit.models.behaviors.html">behaviors</a>
						</li>
							</ul></li>
				<li><a href="package-debug.kit.vendors.html">vendors</a>
						</li>
				<li><a href="package-debug.kit.views.html">views<span></span></a>
						<ul>
				<li><a href="package-debug.kit.views.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li></ul></li>
				<li><a href="package-localized.html">localized</a>
						</li>
				<li><a href="package-Localized.html">Localized<span></span></a>
						<ul>
				<li><a href="package-localized.tests.html">tests<span></span></a>
						<ul>
				<li><a href="package-localized.tests.cases.html">cases<span></span></a>
						<ul>
				<li><a href="package-localized.tests.cases.libs.html">libs</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-Localized.Validation.html">Validation</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-AbismoAppSchema.html" class="invalid">AbismoAppSchema</a></li>
				<li><a href="class-AppController.html">AppController</a></li>
				<li class="active"><a href="class-AttachmentBehavior.html">AttachmentBehavior</a></li>
				<li><a href="class-BootstrapFormHelper.html">BootstrapFormHelper</a></li>
				<li><a href="class-BootstrapPaginatorHelper.html">BootstrapPaginatorHelper</a></li>
				<li><a href="class-BootstrapSessionHelper.html">BootstrapSessionHelper</a></li>
				<li><a href="class-ContactoController.html">ContactoController</a></li>
				<li><a href="class-DATABASE_CONFIG.html">DATABASE_CONFIG</a></li>
				<li><a href="class-FancyboxAppController.html">FancyboxAppController</a></li>
				<li><a href="class-FancyboxController.html">FancyboxController</a></li>
				<li><a href="class-FileValidationBehavior.html">FileValidationBehavior</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-None.html" title="Summary of None"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class AttachmentBehavior</h1>


	<div class="description">
	
<p>A CakePHP Behavior that attaches a file to a model, uploads automatically,
and then stores a value in the database.</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
ModelBehavior
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>AttachmentBehavior</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		

				<b>Copyright:</b>
				Copyright 2006-2013, Miles Johnson - <a
href="http://milesj.me">http://milesj.me</a><br />
				<b>License:</b>
				<a href="http://opensource.org/licenses/mit-license.php">- Licensed under the MIT License</a><br />
		<b>Located at</b> <a href="source-class-AttachmentBehavior.html#21-639" title="Go to source code">Plugin/Uploader/Model/Behavior/AttachmentBehavior.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="setup" id="_setup">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setup">#</a>
		<code><a href="source-class-AttachmentBehavior.html#119-170" title="Go to source code">setup</a>( <span>Model <var>$model</var></span>, <span>array <var>$settings</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			
<p>Save attachment settings.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Save attachment settings.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$settings</var></dt>
					<dd><code>array</code><br>$settings</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="cleanup" id="_cleanup">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_cleanup">#</a>
		<code><a href="source-class-AttachmentBehavior.html#172-183" title="Go to source code">cleanup</a>( <span>Model <var>$model</var></span> )</code>

		<div class="description short">
			
<p>Cleanup and reset the behavior when its detached.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Cleanup and reset the behavior when its detached.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="beforeDelete" id="_beforeDelete">

		<td class="attributes"><code>
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_beforeDelete">#</a>
		<code><a href="source-class-AttachmentBehavior.html#185-198" title="Go to source code">beforeDelete</a>( <span>Model <var>$model</var></span>, <span>boolean <var>$cascade</var> = <span class="php-keyword1">true</span></span> )</code>

		<div class="description short">
			
<p>Deletes any files that have been attached to this model.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Deletes any files that have been attached to this model.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$cascade</var></dt>
					<dd><code>boolean</code><br>$cascade</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="beforeSave" id="_beforeSave">

		<td class="attributes"><code>
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_beforeSave">#</a>
		<code><a href="source-class-AttachmentBehavior.html#200-357" title="Go to source code">beforeSave</a>( <span>Model <var>$model</var></span> )</code>

		<div class="description short">
			
<p>Before saving the data, try uploading the file, if successful save to
database.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Before saving the data, try uploading the file, if successful save to
database.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="deleteFiles" id="_deleteFiles">

		<td class="attributes"><code>
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_deleteFiles">#</a>
		<code><a href="source-class-AttachmentBehavior.html#359-404" title="Go to source code">deleteFiles</a>( <span>Model <var>$model</var></span>, <span>integer <var>$id</var></span>, <span>array <var>$filter</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			
<p>Delete all files associated with a record but do not delete the record.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Delete all files associated with a record but do not delete the record.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$id</var></dt>
					<dd><code>integer</code><br>$id</dd>
					<dt><var>$filter</var></dt>
					<dd><code>array</code><br>$filter</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUploadedFile" id="_getUploadedFile">

		<td class="attributes"><code>
			 public 
			Transit\File
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUploadedFile">#</a>
		<code><a href="source-class-AttachmentBehavior.html#406-418" title="Go to source code">getUploadedFile</a>( <span>Model <var>$model</var></span> )</code>

		<div class="description short">
			
<p>Return the uploaded original File object.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return the uploaded original File object.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Transit\File</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getTransformedFiles" id="_getTransformedFiles">

		<td class="attributes"><code>
			 public 
			Transit\File[]
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getTransformedFiles">#</a>
		<code><a href="source-class-AttachmentBehavior.html#420-432" title="Go to source code">getTransformedFiles</a>( <span>Model <var>$model</var></span> )</code>

		<div class="description short">
			
<p>Return the transformed File objects.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return the transformed File objects.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Transit\File[]</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_settingsCallback" id="__settingsCallback">

		<td class="attributes"><code>
			 protected 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__settingsCallback">#</a>
		<code><a href="source-class-AttachmentBehavior.html#434-457" title="Go to source code">_settingsCallback</a>( <span>Model <var>$model</var></span>, <span>array <var>$options</var></span> )</code>

		<div class="description short">
			
<p>Trigger callback methods to modify attachment settings before uploading.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Trigger callback methods to modify attachment settings before uploading.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$options</var></dt>
					<dd><code>array</code><br>$options</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_addTransformers" id="__addTransformers">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__addTransformers">#</a>
		<code><a href="source-class-AttachmentBehavior.html#459-480" title="Go to source code">_addTransformers</a>( <span>Model <var>$model</var></span>, <span>Transit\Transit\Transit <var>$transit</var></span>, <span>array <var>$attachment</var></span> )</code>

		<div class="description short">
			
<p>Add Transit Transformers based on the attachment settings.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Add Transit Transformers based on the attachment settings.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$transit</var></dt>
					<dd><code>Transit\Transit</code><br>$transit</dd>
					<dt><var>$attachment</var></dt>
					<dd><code>array</code><br>$attachment</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="_setTransporter" id="__setTransporter">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__setTransporter">#</a>
		<code><a href="source-class-AttachmentBehavior.html#482-495" title="Go to source code">_setTransporter</a>( <span>Model <var>$model</var></span>, <span>Transit\Transit\Transit <var>$transit</var></span>, <span>array <var>$attachment</var></span> )</code>

		<div class="description short">
			
<p>Set the Transit Transporter to use based on the attachment settings.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Set the Transit Transporter to use based on the attachment settings.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$transit</var></dt>
					<dd><code>Transit\Transit</code><br>$transit</dd>
					<dt><var>$attachment</var></dt>
					<dd><code>array</code><br>$attachment</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="_getTransformer" id="__getTransformer">

		<td class="attributes"><code>
			 protected 
			Transit\Transformer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__getTransformer">#</a>
		<code><a href="source-class-AttachmentBehavior.html#497-522" title="Go to source code">_getTransformer</a>( <span>array <var>$options</var></span> )</code>

		<div class="description short">
			
<p>Return a Transformer based on the options.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return a Transformer based on the options.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$options</var></dt>
					<dd><code>array</code><br>$options</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Transit\Transformer</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="class-InvalidArgumentException.html">InvalidArgumentException</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="_getTransporter" id="__getTransporter">

		<td class="attributes"><code>
			 protected 
			Transit\Transporter
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__getTransporter">#</a>
		<code><a href="source-class-AttachmentBehavior.html#524-543" title="Go to source code">_getTransporter</a>( <span>array <var>$options</var></span> )</code>

		<div class="description short">
			
<p>Return a Transporter based on the options.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return a Transporter based on the options.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$options</var></dt>
					<dd><code>array</code><br>$options</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Transit\Transporter</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="class-InvalidArgumentException.html">InvalidArgumentException</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="_renameAndMove" id="__renameAndMove">

		<td class="attributes"><code>
			 protected 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__renameAndMove">#</a>
		<code><a href="source-class-AttachmentBehavior.html#545-567" title="Go to source code">_renameAndMove</a>( <span>Model <var>$model</var></span>, <span>Transit\Transit\File <var>$file</var></span>, <span>array <var>$options</var></span> )</code>

		<div class="description short">
			
<p>Rename or move the file and return its relative path.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Rename or move the file and return its relative path.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$file</var></dt>
					<dd><code>Transit\File</code><br>$file</dd>
					<dt><var>$options</var></dt>
					<dd><code>array</code><br>$options</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_deleteFile" id="__deleteFile">

		<td class="attributes"><code>
			 protected 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__deleteFile">#</a>
		<code><a href="source-class-AttachmentBehavior.html#569-604" title="Go to source code">_deleteFile</a>( <span>Model <var>$model</var></span>, <span>string <var>$field</var></span>, <span>string <var>$path</var></span> )</code>

		<div class="description short">
			
<p>Attempt to delete a file using the attachment settings.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Attempt to delete a file using the attachment settings.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$field</var></dt>
					<dd><code>string</code><br>$field</dd>
					<dt><var>$path</var></dt>
					<dd><code>string</code><br>$path</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_cleanupOldFiles" id="__cleanupOldFiles">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__cleanupOldFiles">#</a>
		<code><a href="source-class-AttachmentBehavior.html#606-637" title="Go to source code">_cleanupOldFiles</a>( <span>Model <var>$model</var></span>, <span>array <var>$fields</var></span> )</code>

		<div class="description short">
			
<p>Delete previous files if a record is being overwritten.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Delete previous files if a record is being overwritten.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$model</var></dt>
					<dd><code>Model</code><br>$model</dd>
					<dt><var>$fields</var></dt>
					<dd><code>array</code><br>$fields</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	</table>








	<table class="summary" id="constants">
	<caption>Constants summary</caption>
	<tr data-order="CROP" id="CROP">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#27-30" title="Go to source code"><b>CROP</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'crop'</span></code></td>
		<td class="description"><div>
			<a href="#CROP" class="anchor">#</a>

			<div class="description short">
				
<p>Transformation types.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Transformation types.</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="FLIP" id="FLIP">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#31" title="Go to source code"><b>FLIP</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'flip'</span></code></td>
		<td class="description"><div>
			<a href="#FLIP" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="RESIZE" id="RESIZE">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#32" title="Go to source code"><b>RESIZE</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'resize'</span></code></td>
		<td class="description"><div>
			<a href="#RESIZE" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="SCALE" id="SCALE">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#33" title="Go to source code"><b>SCALE</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'scale'</span></code></td>
		<td class="description"><div>
			<a href="#SCALE" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="S3" id="S3">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#35-38" title="Go to source code"><b>S3</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'s3'</span></code></td>
		<td class="description"><div>
			<a href="#S3" class="anchor">#</a>

			<div class="description short">
				
<p>Transportation types.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Transportation types.</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="GLACIER" id="GLACIER">

		<td class="attributes"><code>string</code></td>
		<td class="name"><code>
				<a href="source-class-AttachmentBehavior.html#39" title="Go to source code"><b>GLACIER</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'glacier'</span></code></td>
		<td class="description"><div>
			<a href="#GLACIER" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>




	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="_uploads" id="$_uploads">
		<td class="attributes"><code>
			protected  
			Transit\Transit[]
		</code></td>

		<td class="name">
				<a href="source-class-AttachmentBehavior.html#41-46" title="Go to source code"><var>$_uploads</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$_uploads" class="anchor">#</a>

			<div class="description short">
				
<p>Transit instances indexed by model alias.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Transit instances indexed by model alias.</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="_columns" id="$_columns">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-AttachmentBehavior.html#48-53" title="Go to source code"><var>$_columns</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$_columns" class="anchor">#</a>

			<div class="description short">
				
<p>Mapping of database columns to attachment fields.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Mapping of database columns to attachment fields.</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="_defaultSettings" id="$_defaultSettings">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-AttachmentBehavior.html#55-90" title="Go to source code"><var>$_defaultSettings</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>(
	<span class="php-quote">'nameCallback'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'append'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'prepend'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'tempDir'</span> =&gt; TMP,
	<span class="php-quote">'uploadDir'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'finalPath'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'dbColumn'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'metaColumns'</span> =&gt; <span class="php-keyword1">array</span>(),
	<span class="php-quote">'defaultPath'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'overwrite'</span> =&gt; <span class="php-keyword1">false</span>,
	<span class="php-quote">'stopSave'</span> =&gt; <span class="php-keyword1">true</span>,
	<span class="php-quote">'allowEmpty'</span> =&gt; <span class="php-keyword1">true</span>,
	<span class="php-quote">'transforms'</span> =&gt; <span class="php-keyword1">array</span>(),
	<span class="php-quote">'transport'</span> =&gt; <span class="php-keyword1">array</span>()
)</code></td>
		<td class="description"><div>
			<a href="#$_defaultSettings" class="anchor">#</a>

			<div class="description short">
				
<p>Default attachment settings.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Default attachment settings.</p>

<p>nameCallback - Method to format filename with append - What to append to the
end of the filename prepend - What to prepend to the beginning of the filename
tempDir - Directory to upload files to temporarily uploadDir - Directory to move
file to after upload to make it publicly accessible finalPath - The final path
to prepend to file names (like a domain) dbColumn - Database column to write
file path to metaColumns - Database columns to write meta data to defaultPath -
Default image if no file is uploaded overwrite - Overwrite a file with the same
name if it exists stopSave - Stop save() if error exists during upload
allowEmpty - Allow an empty file upload to continue transforms - List of
transforms to apply to the image transport - Settings for file
transportation</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="_transformSettings" id="$_transformSettings">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-AttachmentBehavior.html#92-117" title="Go to source code"><var>$_transformSettings</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>(
	<span class="php-quote">'method'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'nameCallback'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'append'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'prepend'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'uploadDir'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'finalPath'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'dbColumn'</span> =&gt; <span class="php-quote">''</span>,
	<span class="php-quote">'overwrite'</span> =&gt; <span class="php-keyword1">false</span>,
	<span class="php-quote">'self'</span> =&gt; <span class="php-keyword1">false</span>
)</code></td>
		<td class="description"><div>
			<a href="#$_transformSettings" class="anchor">#</a>

			<div class="description short">
				
<p>Default transform settings.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Default transform settings.</p>

<p>method - The transform method nameCallback - Method to format filename with
append - What to append to the end of the filename prepend - What to prepend to
the beginning of the filename uploadDir - Directory to move file to after upload
to make it publicly accessible finalPath - The final path to prepend to file
names (like a domain) dbColumn - Database column to write file path to overwrite
- Overwrite a file with the same name if it exists self - Should the transforms
apply to the uploaded file instead of creating new images</p>


			</div>
		</div></td>
	</tr>
	</table>






</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
